package com.oceansoft.mobile.biz.admin.entity;
import com.oceansoft.mobile.biz.api.entity.WxReserve;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by lenovo on 2017/3/28.
 */
public class WxReserveMapper implements RowMapper<WxReserve> {
    @Override
    public WxReserve mapRow(ResultSet resultSet, int i) throws SQLException {
        WxReserve wx = new WxReserve();
        wx.setDeptid(resultSet.getString("DEPTID"));
        wx.setDate(resultSet.getString("DATE"));
        wx.setSbnum(resultSet.getInt("SBNUM"));
        wx.setZxnum(resultSet.getInt("ZXNUM"));
        wx.setBjbh(resultSet.getString("BJBH"));
        wx.setQynum(resultSet.getInt("QYNUM"));
        wx.setDjnum(resultSet.getInt("DJNUM"));
        wx.setOpenId(resultSet.getString("OPENID"));
        wx.setBjbh(resultSet.getString("BJBH"));
        wx.setXm(resultSet.getString("XM"));
        wx.setLxdh(resultSet.getString("LXDH"));
        return wx;
    }
}
